from home import models
from rest_framework.serializers import ModelSerializer

from home.models import NavModel, BannerModel


class NavSerializer(ModelSerializer):
    class Meta:
        model=NavModel
        fields='__all__'

class BannerSerializer(ModelSerializer):
    class Meta:
        model=BannerModel
        fields='__all__'